#ifndef _Condition_H_
#define _Condition_H_

#include <pthread.h>

namespace wd{

class MutexLock;

class Condition{
public:
    Condition(MutexLock &);
    ~Condition();

    void wait();
    void notify_one();
    void notify_all();
private:
    pthread_cond_t _cond;
    MutexLock & _mutex;

};

}

#endif

